const vm = require('vm');
const context = { x: 2 };
vm.createContext(context);

const script = new vm.Script('x += 400');
const result = script.runInContext(context);

console.log(result);
console.log(context.x);
